package Array;
/*
* 求数组中最值
* */
public class Array2 {
    public static void main(String[] args) {
        int[] array = {1,11,21,31,41,51,61,100};

        int max = array[0];
        for (int i = 1; i < array.length; i++) {
            if(array[i] > max)
                max = array[i];
        }
        System.out.println("数组中的最大值是:" + max);
    }
}
